package com.huibao.hulibao.activity;

import android.app.Dialog;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.Window;

import com.huibao.hulibao.R;
import com.huibao.hulibao.utils.AppManager;
import com.huibao.hulibao.utils.DialogUtils;

/**
 * Created by lizhaoyong on 2018/5/7.
 * 所有activity的父类
 */
public class BaseActivity extends FragmentActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);// 填充标题栏
        AppManager.getAppManager().addActivity(this);
    }


    @Override
    protected void onDestroy() {
        super.onDestroy();
        AppManager.getAppManager().finishActivity(this);
    }
}
